﻿@model IList<com.tanlingyun.baojia.Entity.ProfitSetting>
@using com.tanlingyun.ViewModel
@{
    Layout = null;
}

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>利润管理</title>
    <link href="~/Content/style.css" rel="stylesheet" type="text/css" />
    <link href="~/Content/alertify.min.css" rel="stylesheet" type="text/css" />
    <link href="~/Content/themes/default.min.css" rel="stylesheet"  type="text/css"/>
    <link href="~/Content/bootstrap.min.css" rel="stylesheet"  type="text/css" />
    <link href="~/Content/bootstrap-editable.css" rel="stylesheet"  type="text/css" />

    <style>
        .table1 table {
            margin-bottom: 20px;
        }
        td a{
            background:none !important;
            border:0 !important;
        }
        h2{
            margin-top:0 !important;
        }
        select{
            width:100px !important;
        }
    </style>
</head>

<body>
    @Html.Action("Top","Home")
    <div class="top_search">
        <h2>利润管理</h2>
        <form class="form1">
            <select id="manager_id" style="display:none;"><option value="0">默认数据</option></select>
            <input type="submit" id="btn" class="jb" value="查询">
        </form>
    </div>

    <div id="box_add" class="lr">
        <h2>利润管理<span>×</span></h2>
        <input type="hidden" value="" name="ID"/>
        <div>
            <span>材料与工时成本合计：</span>
            <select name="MateTimeType">
                <option value="0" data-min="0" data-max="0"></option>
                <option value="1" data-min="0" data-max="1000">1000元以下</option>
                <option value="2" data-min="1000" data-max="5000">1000-5000元</option>
                <option value="3" data-min="5000" data-max="10000">5000-10000元</option>
                <option value="4" data-min="10000" data-max="-1">10000元以上</option>
            </select>
        </div>
        <div>
            <span>产品月供数量：</span>
            <select name="PdMonQtyType">
                <option value="0" data-min="0" data-max="0" ></option>
                <option value="1" data-min="0" data-max="10">10件以下</option>
                <option value="2" data-min="10" data-max="50" >10件-50件</option>
                <option value="3" data-min="50" data-max="150" >50件-150件</option>
                <option value="4" data-min="150" data-max="-1" >150件以上</option>
            </select>
        </div>

        <div>
            <span>材料成本占比：</span>
            <select name="MatRatioType">
                <option data-min="0" data-max="0" value="0"></option>
                <option data-min="0" data-max="0.3" value="1">30%及以下</option>
                <option data-min="0.3" data-max="0.5" value="2">30%至50%</option>
                <option data-min="0.5" data-max="0.65" value="3">50%（含50%）至65%</option>
                <option data-min="0.65" data-max="-1" value="4">65%及以上</option>
            </select>
        </div>


        <div><span>产品利润：</span><input type="text" name="Profit" required  data-type="number" data-error="产品利润不能为空且必须为数字！"></div>

        <p><input type="submit" class="jb" value="保存" onclick="onSaveProfit();"/><input class="jb" type="button" value="返回"></p>
    </div>

    <div class="clear"></div>

    <div class="table1">
        <table cellspacing="1" cellpadding="0">
            <tr class="tit">
                <td colspan="5">材料与工时成本合计1000元以下</td>
            </tr>
            <tr>
                <td></td>
                <td>材料成本占比30%及以下</td>
                <td>材料成本占比30%至50%</td>
                <td>材料成本占比50%（含50%）至65%</td>
                <td>材料成本占比65%及以上</td>
            </tr>
            <tr>
                <td>月供数量10件以下</td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=1&p2=1&p3=1" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Under1000 && x.PdMonQtyType == (int)EPdMonQtyType.Under10 && x.MatRatioType == (int)EMatRatioType.UnderPer30).FirstOrDefault().Profit</a></td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=1&p2=1&p3=2" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Under1000 && x.PdMonQtyType == (int)EPdMonQtyType.Under10 && x.MatRatioType == (int)EMatRatioType.Between30To50Per).FirstOrDefault().Profit</a></td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=1&p2=1&p3=3" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Under1000 && x.PdMonQtyType == (int)EPdMonQtyType.Under10 && x.MatRatioType == (int)EMatRatioType.Between50And65Per).FirstOrDefault().Profit</a></td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=1&p2=1&p3=4" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Under1000 && x.PdMonQtyType == (int)EPdMonQtyType.Under10 && x.MatRatioType == (int)EMatRatioType.Over65Per).FirstOrDefault().Profit</a></td>
            </tr>
            <tr>
                <td>月供数量10件-50件</td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=1&p2=2&p3=1" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Under1000 && x.PdMonQtyType == (int)EPdMonQtyType.Between10To50 && x.MatRatioType == (int)EMatRatioType.UnderPer30).FirstOrDefault().Profit</a></td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=1&p2=2&p3=2" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Under1000 && x.PdMonQtyType == (int)EPdMonQtyType.Between10To50 && x.MatRatioType == (int)EMatRatioType.Between30To50Per).FirstOrDefault().Profit</a></td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=1&p2=2&p3=3" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Under1000 && x.PdMonQtyType == (int)EPdMonQtyType.Between10To50 && x.MatRatioType == (int)EMatRatioType.Between50And65Per).FirstOrDefault().Profit</a></td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=1&p2=2&p3=4" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Under1000 && x.PdMonQtyType == (int)EPdMonQtyType.Between10To50 && x.MatRatioType == (int)EMatRatioType.Over65Per).FirstOrDefault().Profit</a></td>
            </tr>
            <tr>
                <td>月供数量50件-150件</td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=1&p2=3&p3=1" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Under1000 && x.PdMonQtyType == (int)EPdMonQtyType.Between50And150 && x.MatRatioType == (int)EMatRatioType.UnderPer30).FirstOrDefault().Profit</a></td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=1&p2=3&p3=2" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Under1000 && x.PdMonQtyType == (int)EPdMonQtyType.Between50And150 && x.MatRatioType == (int)EMatRatioType.Between30To50Per).FirstOrDefault().Profit</a></td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=1&p2=3&p3=3" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Under1000 && x.PdMonQtyType == (int)EPdMonQtyType.Between50And150 && x.MatRatioType == (int)EMatRatioType.Between50And65Per).FirstOrDefault().Profit</a></td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=1&p2=3&p3=4" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Under1000 && x.PdMonQtyType == (int)EPdMonQtyType.Between50And150 && x.MatRatioType == (int)EMatRatioType.Over65Per).FirstOrDefault().Profit</a></td>

            </tr>
            <tr>
                <td>月供数量150件以上</td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=1&p2=4&p3=1" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Under1000 && x.PdMonQtyType == (int)EPdMonQtyType.Over150 && x.MatRatioType == (int)EMatRatioType.UnderPer30).FirstOrDefault().Profit</a></td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=1&p2=4&p3=2" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Under1000 && x.PdMonQtyType == (int)EPdMonQtyType.Over150 && x.MatRatioType == (int)EMatRatioType.Between30To50Per).FirstOrDefault().Profit</a></td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=1&p2=4&p3=3" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Under1000 && x.PdMonQtyType == (int)EPdMonQtyType.Over150 && x.MatRatioType == (int)EMatRatioType.Between50And65Per).FirstOrDefault().Profit</a></td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=1&p2=4&p3=4" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Under1000 && x.PdMonQtyType == (int)EPdMonQtyType.Over150 && x.MatRatioType == (int)EMatRatioType.Over65Per).FirstOrDefault().Profit</a></td>

            </tr>

        </table>
        <table cellspacing="1" cellpadding="0">
            <tr class="tit">
                <td colspan="5">材料与工时成本合计1000-5000元</td>
            </tr>
            <tr>
                <td></td>
                <td>材料成本占比30%及以下</td>
                <td>材料成本占比30%至50%</td>
                <td>材料成本占比50%（含50%）至65%</td>
                <td>材料成本占比65%及以上</td>
            </tr>
            <tr>
                <td>月供数量10件以下</td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=2&p2=1&p3=1" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Between1000And5000 && x.PdMonQtyType == (int)EPdMonQtyType.Under10 && x.MatRatioType == (int)EMatRatioType.UnderPer30).FirstOrDefault().Profit</a></td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=2&p2=1&p3=2" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Between1000And5000 && x.PdMonQtyType == (int)EPdMonQtyType.Under10 && x.MatRatioType == (int)EMatRatioType.Between30To50Per).FirstOrDefault().Profit</a></td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=2&p2=1&p3=3" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Between1000And5000 && x.PdMonQtyType == (int)EPdMonQtyType.Under10 && x.MatRatioType == (int)EMatRatioType.Between50And65Per).FirstOrDefault().Profit</a></td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=2&p2=1&p3=4" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Between1000And5000 && x.PdMonQtyType == (int)EPdMonQtyType.Under10 && x.MatRatioType == (int)EMatRatioType.Over65Per).FirstOrDefault().Profit</a></td>

            </tr>
            <tr>
                <td>月供数量10件-50件</td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=2&p2=2&p3=1" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Between1000And5000 && x.PdMonQtyType == (int)EPdMonQtyType.Between10To50 && x.MatRatioType == (int)EMatRatioType.UnderPer30).FirstOrDefault().Profit</a></td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=2&p2=2&p3=2" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Between1000And5000 && x.PdMonQtyType == (int)EPdMonQtyType.Between10To50 && x.MatRatioType == (int)EMatRatioType.Between30To50Per).FirstOrDefault().Profit</a></td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=2&p2=2&p3=3" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Between1000And5000 && x.PdMonQtyType == (int)EPdMonQtyType.Between10To50 && x.MatRatioType == (int)EMatRatioType.Between50And65Per).FirstOrDefault().Profit</a></td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=2&p2=2&p3=4" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Between1000And5000 && x.PdMonQtyType == (int)EPdMonQtyType.Between10To50 && x.MatRatioType == (int)EMatRatioType.Over65Per).FirstOrDefault().Profit</a></td>

            </tr>
            <tr>
                <td>月供数量50件-150件</td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=2&p2=3&p3=1" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Between1000And5000 && x.PdMonQtyType == (int)EPdMonQtyType.Between50And150 && x.MatRatioType == (int)EMatRatioType.UnderPer30).FirstOrDefault().Profit</a></td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=2&p2=3&p3=2" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Between1000And5000 && x.PdMonQtyType == (int)EPdMonQtyType.Between50And150 && x.MatRatioType == (int)EMatRatioType.Between30To50Per).FirstOrDefault().Profit</a></td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=2&p2=3&p3=3" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Between1000And5000 && x.PdMonQtyType == (int)EPdMonQtyType.Between50And150 && x.MatRatioType == (int)EMatRatioType.Between50And65Per).FirstOrDefault().Profit</a></td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=2&p2=3&p3=4" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Between1000And5000 && x.PdMonQtyType == (int)EPdMonQtyType.Between50And150 && x.MatRatioType == (int)EMatRatioType.Over65Per).FirstOrDefault().Profit</a></td>
            </tr>
            <tr>
                <td>月供数量150件以上</td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=2&p2=4&p3=1" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Between1000And5000 && x.PdMonQtyType == (int)EPdMonQtyType.Over150 && x.MatRatioType == (int)EMatRatioType.UnderPer30).FirstOrDefault().Profit</a></td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=2&p2=4&p3=2" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Between1000And5000 && x.PdMonQtyType == (int)EPdMonQtyType.Over150 && x.MatRatioType == (int)EMatRatioType.Between30To50Per).FirstOrDefault().Profit</a></td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=2&p2=4&p3=3" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Between1000And5000 && x.PdMonQtyType == (int)EPdMonQtyType.Over150 && x.MatRatioType == (int)EMatRatioType.Between50And65Per).FirstOrDefault().Profit</a></td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=2&p2=4&p3=4" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Between1000And5000 && x.PdMonQtyType == (int)EPdMonQtyType.Over150 && x.MatRatioType == (int)EMatRatioType.Over65Per).FirstOrDefault().Profit</a></td>
            </tr>
        </table>
        <table cellspacing="1" cellpadding="0">
            <tr class="tit">

                <td colspan="5">材料与工时成本合计5000-10000元</td>
            </tr>
            <tr>
                <td>　</td>
                <td>材料成本占比30%及以下</td>
                <td>材料成本占比30%至50%</td>
                <td>材料成本占比50%（含50%）至65%</td>
                <td>材料成本占比65%及以上</td>
            </tr>
            <tr>
                <td>月供数量10件以下</td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=3&p2=1&p3=1" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Between5000And10000 && x.PdMonQtyType == (int)EPdMonQtyType.Under10 && x.MatRatioType == (int)EMatRatioType.UnderPer30).FirstOrDefault().Profit</a></td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=3&p2=1&p3=2" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Between5000And10000 && x.PdMonQtyType == (int)EPdMonQtyType.Under10 && x.MatRatioType == (int)EMatRatioType.Between30To50Per).FirstOrDefault().Profit</a></td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=3&p2=1&p3=3" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Between5000And10000 && x.PdMonQtyType == (int)EPdMonQtyType.Under10 && x.MatRatioType == (int)EMatRatioType.Between50And65Per).FirstOrDefault().Profit</a></td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=3&p2=1&p3=4" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Between5000And10000 && x.PdMonQtyType == (int)EPdMonQtyType.Under10 && x.MatRatioType == (int)EMatRatioType.Over65Per).FirstOrDefault().Profit</a></td>

            </tr>
            <tr>
                <td>月供数量10件-50件</td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=3&p2=2&p3=1" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Between5000And10000 && x.PdMonQtyType == (int)EPdMonQtyType.Between10To50 && x.MatRatioType == (int)EMatRatioType.UnderPer30).FirstOrDefault().Profit</a></td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=3&p2=2&p3=2" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Between5000And10000 && x.PdMonQtyType == (int)EPdMonQtyType.Between10To50 && x.MatRatioType == (int)EMatRatioType.Between30To50Per).FirstOrDefault().Profit</a></td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=3&p2=2&p3=3" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Between5000And10000 && x.PdMonQtyType == (int)EPdMonQtyType.Between10To50 && x.MatRatioType == (int)EMatRatioType.Between50And65Per).FirstOrDefault().Profit</a></td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=3&p2=2&p3=4" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Between5000And10000 && x.PdMonQtyType == (int)EPdMonQtyType.Between10To50 && x.MatRatioType == (int)EMatRatioType.Over65Per).FirstOrDefault().Profit</a></td>
            </tr>
            <tr>
                <td>月供数量50件-150件</td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=3&p2=3&p3=1" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Between5000And10000 && x.PdMonQtyType == (int)EPdMonQtyType.Between50And150 && x.MatRatioType == (int)EMatRatioType.UnderPer30).FirstOrDefault().Profit</a></td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=3&p2=3&p3=2" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Between5000And10000 && x.PdMonQtyType == (int)EPdMonQtyType.Between50And150 && x.MatRatioType == (int)EMatRatioType.Between30To50Per).FirstOrDefault().Profit</a></td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=3&p2=3&p3=3" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Between5000And10000 && x.PdMonQtyType == (int)EPdMonQtyType.Between50And150 && x.MatRatioType == (int)EMatRatioType.Between50And65Per).FirstOrDefault().Profit</a></td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=3&p2=3&p3=4" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Between5000And10000 && x.PdMonQtyType == (int)EPdMonQtyType.Between50And150 && x.MatRatioType == (int)EMatRatioType.Over65Per).FirstOrDefault().Profit</a></td>


            </tr>
            <tr>
                <td>月供数量150件以上</td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=3&p2=4&p3=1" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Between5000And10000 && x.PdMonQtyType == (int)EPdMonQtyType.Over150 && x.MatRatioType == (int)EMatRatioType.UnderPer30).FirstOrDefault().Profit</a></td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=3&p2=4&p3=2" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Between5000And10000 && x.PdMonQtyType == (int)EPdMonQtyType.Over150 && x.MatRatioType == (int)EMatRatioType.Between30To50Per).FirstOrDefault().Profit</a></td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=3&p2=4&p3=3" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Between5000And10000 && x.PdMonQtyType == (int)EPdMonQtyType.Over150 && x.MatRatioType == (int)EMatRatioType.Between50And65Per).FirstOrDefault().Profit</a></td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=3&p2=4&p3=4" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Between5000And10000 && x.PdMonQtyType == (int)EPdMonQtyType.Over150 && x.MatRatioType == (int)EMatRatioType.Over65Per).FirstOrDefault().Profit</a></td>
            </tr>
        </table>
        <table cellspacing="1" cellpadding="0">
            <tr class="tit">


                <td colspan="5">材料与工时成本合计10000元以上</td>
            </tr>
            <tr>
                <td>　</td>
                <td>材料成本占比30%及以下</td>
                <td>材料成本占比30%至50%</td>
                <td>材料成本占比50%（含50%）至65%</td>
                <td>材料成本占比65%及以上</td>
            </tr>
            <tr>
                <td>月供数量10件以下</td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=4&p2=1&p3=1" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Over10000 && x.PdMonQtyType == (int)EPdMonQtyType.Under10 && x.MatRatioType == (int)EMatRatioType.UnderPer30).FirstOrDefault().Profit</a></td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=4&p2=1&p3=2" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Over10000 && x.PdMonQtyType == (int)EPdMonQtyType.Under10 && x.MatRatioType == (int)EMatRatioType.Between30To50Per).FirstOrDefault().Profit</a></td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=4&p2=1&p3=3" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Over10000 && x.PdMonQtyType == (int)EPdMonQtyType.Under10 && x.MatRatioType == (int)EMatRatioType.Between50And65Per).FirstOrDefault().Profit</a></td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=4&p2=1&p3=4" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Over10000 && x.PdMonQtyType == (int)EPdMonQtyType.Under10 && x.MatRatioType == (int)EMatRatioType.Over65Per).FirstOrDefault().Profit</a></td>

            </tr>
            <tr>
                <td>月供数量10件-50件</td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=4&p2=2&p3=1" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Over10000 && x.PdMonQtyType == (int)EPdMonQtyType.Between10To50 && x.MatRatioType == (int)EMatRatioType.UnderPer30).FirstOrDefault().Profit</a></td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=4&p2=2&p3=2" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Over10000 && x.PdMonQtyType == (int)EPdMonQtyType.Between10To50 && x.MatRatioType == (int)EMatRatioType.Between30To50Per).FirstOrDefault().Profit</a></td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=4&p2=2&p3=3" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Over10000 && x.PdMonQtyType == (int)EPdMonQtyType.Between10To50 && x.MatRatioType == (int)EMatRatioType.Between50And65Per).FirstOrDefault().Profit</a></td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=4&p2=2&p3=4" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Over10000 && x.PdMonQtyType == (int)EPdMonQtyType.Between10To50 && x.MatRatioType == (int)EMatRatioType.Over65Per).FirstOrDefault().Profit</a></td>
            </tr>
            <tr>
                <td>月供数量50件-150件</td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=4&p2=3&p3=1" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Over10000 && x.PdMonQtyType == (int)EPdMonQtyType.Between50And150 && x.MatRatioType == (int)EMatRatioType.UnderPer30).FirstOrDefault().Profit</a></td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=4&p2=3&p3=2" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Over10000 && x.PdMonQtyType == (int)EPdMonQtyType.Between50And150 && x.MatRatioType == (int)EMatRatioType.Between30To50Per).FirstOrDefault().Profit</a></td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=4&p2=3&p3=3" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Over10000 && x.PdMonQtyType == (int)EPdMonQtyType.Between50And150 && x.MatRatioType == (int)EMatRatioType.Between50And65Per).FirstOrDefault().Profit</a></td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=4&p2=3&p3=4" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Over10000 && x.PdMonQtyType == (int)EPdMonQtyType.Between50And150 && x.MatRatioType == (int)EMatRatioType.Over65Per).FirstOrDefault().Profit</a></td>

            </tr>
            <tr>
                <td>月供数量150件以上</td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=4&p2=4&p3=1" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Over10000 && x.PdMonQtyType == (int)EPdMonQtyType.Over150 && x.MatRatioType == (int)EMatRatioType.UnderPer30).FirstOrDefault().Profit</a></td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=4&p2=4&p3=2" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Over10000 && x.PdMonQtyType == (int)EPdMonQtyType.Over150 && x.MatRatioType == (int)EMatRatioType.Between30To50Per).FirstOrDefault().Profit</a></td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=4&p2=4&p3=3" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Over10000 && x.PdMonQtyType == (int)EPdMonQtyType.Over150 && x.MatRatioType == (int)EMatRatioType.Between50And65Per).FirstOrDefault().Profit</a></td>
                <td><a href="javascript:;" data-type="text" data-url="/Profit/Modify?p1=4&p2=4&p3=4" data-pk="1" data-title="请输入利润值">@Model.Where(x => x.MateTimeType == (int)EMateTimeType.Over10000 && x.PdMonQtyType == (int)EPdMonQtyType.Over150 && x.MatRatioType == (int)EMatRatioType.Over65Per).FirstOrDefault().Profit</a></td>

            </tr>
        </table>
    </div>
    <script src="~/Scripts/jquery-1.10.2.min.js"></script>
    <script src="~/Scripts/menu.js"></script>
    <script src="~/Scripts/uilts.js"></script>
    <script src="~/Scripts/alertify.min.js"></script>
    <script src="~/Scripts/selectuser.js"></script>
    <script src="~/Scripts/bootstrap.min.js"></script>
    <script src="~/Scripts/bootstrap-editable.js"></script>
    <script>
        $(function () {
            $("td a").editable({
                success: function (response, newValue) {
                    if (!response.success) return response.msg;
                }
            });
        })
    </script>
</body>
</html>

